package Goodspackage;

import java.io.Serializable;

import MainClass.Goods;

/**
* 
*Phone�ࣻ
*/
public class Phone extends Goods implements Serializable  {

	private String color;
	private String memorySize;
	public Phone(String name, double price, int sales_number,String color,String memorySize) {
		super(name, price, sales_number);
		this.color = color;
		this.memorySize = memorySize;
	}
    @Override
    public String toString() {
        return "手机型号:" + this.getName() + "\n" +
                "颜色:" + this.color + "\n" + 
                "内存大小:" + this.memorySize +"\n"+
                "价格:" + this.getPrice() + "\n"+
                "销量:" + this.getSales_number() + "\n" ;
    }

}
